import socket,select
import time,random
import datetime
from config import *

runOn = 'a'

peerPublicPort = 13569
myPort = 10245

a  = socket.socket(type=socket.SOCK_DGRAM)
add = ('0.0.0.0',myPort)
a.bind(add)

if runOn == 'a':    
    add = (bPublicIp,peerPublicPort)
else :
    add = (aPublicIp,peerPublicPort)
while True:    
    a.sendto(str(datetime.datetime.now()).encode(),add)

